For example, how to configure the f12 shortcut in sublimetext3 to open and browse the PHP file in the browser, and it is in the localhost path. In segmentfault, the answer is to modify openinbrowser. path content in The py file,... for example, in
1, the first situation: http://localhost/page can not accessHow to resolve:Find the index.php in the WWW directory and then modify the inside find $projectcontents or directly view the 338 line code to modify '/http ' to ' http://localhost/' for
When the front and back of the integration, often there will be inconsistent path or path error, the result is that the CSS is invalid, servlet or JSP page map is not.
So deliberately write a summary of the path settings:
This only concerns the path
When the front and back of the integration, often there will be inconsistent path or path error situation, the result is that the CSS is invalid, servlet or JSP page mapping is not.So deliberately write a summary of the path settings:This involves
The Code is as follows: {code ...} if the connection address is & #039; localhost & #039;, an error is reported, as follows: Warning: mysqli () :( HY0002002): Nosuchfileordirectoryinmntwwwcglevipublichtmlmysql. phponline2ConnectError... the Code is
In PHPMySQL, localhost and 127.0.01 are connected to the last section of Nginx and PHP-FPM permission security configuration about database connection failure.
When I configured WordPress earlier, I wanted to allow mysql to connect to tcp. google
Next to the Nginx and PHP-FPM permissions Security configuration Last paragraph about database connection failure processing.
Before the configuration of WordPress, then want to let MySQL connect to go TCP, Google will get the answer:
Define ('
1. Relative path and absolute pathAbsolute path: The path that begins with " / " and is the full path.Relative path: A path that does not start with " / " and is relative to the current Web resource directory.In an absolute path, the meaning of " /
The code is as follows:
connect_error) { die('Connect Error (' . $mysqli->connect_errno . ') ' . $mysqli->connect_error);};echo 'ok';
If the above connection address is ' localhost ' there will be an error, as
A No such file or directory error occurred when accessing the mysql database through the CLI of PHP. Find the information and record it after the final solution.This problem also exists in non-CLI access. The simple code is as follows:$ Mysqli = new
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.